package com.ruoyi.basics.domain;

import com.ruoyi.system.domain.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 大用户基础数据表 basics_user
 * 
 * @author wangbing
 * @date 2018-12-28
 */
public class User extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Long id;
	/** 操作人ID */
	private Long userId;
	/** 所属供电单位 */
	private Long deptId;
	/** 用户类别(数据字典) */
	private String userType;
	/** 名称 */
	private String name;
	/** 上网电厂结构（数据字典） */
	private String upStructure;
	/** 电压等级(数据字典) */
	private String voltageGrade;
	/** 用户户号 */
	private String userNum;
	/** 用电类别（数据字典） */
	private String useEleType;
	/** 用电替代方案类别(数据字典) */
	private String useEleChangeType;
	/** 地址 */
	private String address;
	/** 录入时间 */
	private Date addDate;

	/** 部门对象 */
	private SysDept dept;

	public SysDept getDept() {
		return dept;
	}

	public void setDept(SysDept dept) {
		this.dept = dept;
	}

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setDeptId(Long deptId) 
	{
		this.deptId = deptId;
	}

	public Long getDeptId() 
	{
		return deptId;
	}
	public void setUserType(String userType) 
	{
		this.userType = userType;
	}

	public String getUserType() 
	{
		return userType;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setUpStructure(String upStructure) 
	{
		this.upStructure = upStructure;
	}

	public String getUpStructure() 
	{
		return upStructure;
	}
	public void setVoltageGrade(String voltageGrade) 
	{
		this.voltageGrade = voltageGrade;
	}

	public String getVoltageGrade() 
	{
		return voltageGrade;
	}
	public void setUserNum(String userNum) 
	{
		this.userNum = userNum;
	}

	public String getUserNum() 
	{
		return userNum;
	}
	public void setUseEleType(String useEleType) 
	{
		this.useEleType = useEleType;
	}

	public String getUseEleType() 
	{
		return useEleType;
	}
	public void setUseEleChangeType(String useEleChangeType) 
	{
		this.useEleChangeType = useEleChangeType;
	}

	public String getUseEleChangeType() 
	{
		return useEleChangeType;
	}
	public void setAddress(String address) 
	{
		this.address = address;
	}

	public String getAddress() 
	{
		return address;
	}
	public void setAddDate(Date addDate) 
	{
		this.addDate = addDate;
	}

	public Date getAddDate() 
	{
		return addDate;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userType", getUserType())
            .append("name", getName())
            .append("upStructure", getUpStructure())
            .append("voltageGrade", getVoltageGrade())
            .append("userNum", getUserNum())
            .append("useEleType", getUseEleType())
            .append("useEleChangeType", getUseEleChangeType())
            .append("address", getAddress())
            .append("addDate", getAddDate())
            .toString();
    }
}
